package com.sun.huazhi.aitaskservice.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caifeng.domain.common.database.BaseDO;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

import java.time.LocalDateTime;


@TableName("api_logs")
@Data
public class ApiLogsDO {

    @Id
    private  Long id;

    private Long userId;

    private String apiType;

    @Column(columnDefinition = "json")
    private String requestData;

    private Integer responseCode;

    private String responseData; // 新增字段：存储响应结果

    private LocalDateTime createdTime;
}
